(function($) {
	
	$(function() {
		// temp;
		var nmomen = 225891;
		var npeople = 657;
		$('.repay-buy').on('click', function() {
			var $reserveModal = $('#reserveModal');
			$reserveModal.modal('hide');
			$reserveModal.on('hidden.bs.modal', function() {
				$('#repayModal').modal();
			});
		});
		$('#supp-submit').on('click', function() {
			nmomen+=179;
			npeople++;
			var $npeople = $('#npeople');
			var options = {
			useEasing : true, 
			useGrouping : true, 
			separator : ',', 
			decimal : '.',
			prefix : '',
			suffix : ''
			}
			var number = new countUp("price", 0, nmomen, 0, 2.5, options);
			number.start();
			var people = new countUp("npeople", 0, npeople, 0, 2.5, options);
			people.start();
			$npeople.text(npeople);
		});
	});
})(jQuery);